package com.shiguiwu.springmybatis.spring.aop.cglib;

import org.springframework.objenesis.Objenesis;
import org.springframework.objenesis.ObjenesisStd;

/**
 * @description: Objenesis不需要调用构造器创建对象
 * @author: stone
 * @date: Created by 2021/5/18 23:06
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.aop.cglib
 */
public class ObjenesisTests {

    public static class Cat {
        public Cat() {
            System.out.println("调用构造方法。。。。。。。。。。。。。。。。。");
        }
    }

    public static void main(String[] args) {
        Cat cat = new Cat();
        ObjenesisStd objenesisStd = new ObjenesisStd();
        Cat cat1 = objenesisStd.newInstance(Cat.class);
        System.out.println();

    }
}
